package com.young.nyd.service;

import com.young.common.util.Page;
import com.young.nyd.model.UviAgriculturallandinformation;

import java.util.List;

/**
 * 农用地信息表服务接口
 * Created by  on 2018-11-1.
 */
public interface IUviAgriculturallandinformationService {

    /**
     * 查询
     *
     * @param obj
     * @return
     * @throws Exception
     */
    List<UviAgriculturallandinformation> getList(UviAgriculturallandinformation obj) throws Exception;


    /**
     * 根据省市县查询地块name
     *
     * @param county
     * @return
     * @throws Exception
     */
    List<UviAgriculturallandinformation> getLandByCounty(String county) throws Exception;


    /**
     * 分页查询
     *
     * @param obj
     * @param page
     * @return
     * @throws Exception
     */
    List<UviAgriculturallandinformation> getPage(UviAgriculturallandinformation obj, Page page) throws Exception;

    /**
     * 查询单条
     *
     * @param id
     * @return
     * @throws Exception
     */
    UviAgriculturallandinformation get(String id) throws Exception;

    /**
     * 统计数量
     *
     * @param obj
     * @return Integer 满足xx条件的数据有多少条
     * @throws Exception
     */
    int count(UviAgriculturallandinformation obj) throws Exception;

    /**
     * 修改
     *
     * @param obj
     * @return
     * @throws Exception
     */
    int update(UviAgriculturallandinformation obj) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    int delete(String id) throws Exception;

    /**
     * 批量删除
     *
     * @param idArr
     * @return
     * @throws Exception
     */
    int delete(String[] idArr) throws Exception;

    /**
     * 插入
     *
     * @param obj
     * @return
     * @throws Exception
     */
    int insert(UviAgriculturallandinformation obj) throws Exception;

    /**
     * 批量插入
     *
     * @param list
     * @return
     * @throws Exception
     */
    int batchInsert(List<UviAgriculturallandinformation> list) throws Exception;

    /**
     * 查询最大序号
     */
    Integer maxSerialnumber(UviAgriculturallandinformation obj) throws Exception;
}